package com.wiki.utils.commonRequest.category;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CategorySaveReq {
    /**
     * id
     */
    private Long id;

    /**
     * 父id
     */
    private Long parent;

    /**
     * 名称
     */
    @NotEmpty(message = "名称不能为空！")
    private String name;

    /**
     * 顺序
     */
    @NotEmpty(message = "排序不为空")
    private Integer sort;
}
